package com.bed.lovewithpatientbed.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class HospitalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public HospitalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHospitalIdIsNull() {
            addCriterion("hospital_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNotNull() {
            addCriterion("hospital_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdEqualTo(Integer value) {
            addCriterion("hospital_id =", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotEqualTo(Integer value) {
            addCriterion("hospital_id <>", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThan(Integer value) {
            addCriterion("hospital_id >", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hospital_id >=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThan(Integer value) {
            addCriterion("hospital_id <", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThanOrEqualTo(Integer value) {
            addCriterion("hospital_id <=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIn(List<Integer> values) {
            addCriterion("hospital_id in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotIn(List<Integer> values) {
            addCriterion("hospital_id not in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdBetween(Integer value1, Integer value2) {
            addCriterion("hospital_id between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hospital_id not between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNull() {
            addCriterion("dept_id is null");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNotNull() {
            addCriterion("dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeptIdEqualTo(Integer value) {
            addCriterion("dept_id =", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotEqualTo(Integer value) {
            addCriterion("dept_id <>", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThan(Integer value) {
            addCriterion("dept_id >", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dept_id >=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThan(Integer value) {
            addCriterion("dept_id <", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThanOrEqualTo(Integer value) {
            addCriterion("dept_id <=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIn(List<Integer> values) {
            addCriterion("dept_id in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotIn(List<Integer> values) {
            addCriterion("dept_id not in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdBetween(Integer value1, Integer value2) {
            addCriterion("dept_id between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dept_id not between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNull() {
            addCriterion("hospital_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNotNull() {
            addCriterion("hospital_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameEqualTo(String value) {
            addCriterion("hospital_name =", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotEqualTo(String value) {
            addCriterion("hospital_name <>", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThan(String value) {
            addCriterion("hospital_name >", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_name >=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThan(String value) {
            addCriterion("hospital_name <", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_name <=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLike(String value) {
            addCriterion("hospital_name like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotLike(String value) {
            addCriterion("hospital_name not like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIn(List<String> values) {
            addCriterion("hospital_name in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotIn(List<String> values) {
            addCriterion("hospital_name not in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameBetween(String value1, String value2) {
            addCriterion("hospital_name between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotBetween(String value1, String value2) {
            addCriterion("hospital_name not between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andAddressIdIsNull() {
            addCriterion("address_id is null");
            return (Criteria) this;
        }

        public Criteria andAddressIdIsNotNull() {
            addCriterion("address_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddressIdEqualTo(Integer value) {
            addCriterion("address_id =", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdNotEqualTo(Integer value) {
            addCriterion("address_id <>", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdGreaterThan(Integer value) {
            addCriterion("address_id >", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("address_id >=", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdLessThan(Integer value) {
            addCriterion("address_id <", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdLessThanOrEqualTo(Integer value) {
            addCriterion("address_id <=", value, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdIn(List<Integer> values) {
            addCriterion("address_id in", values, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdNotIn(List<Integer> values) {
            addCriterion("address_id not in", values, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdBetween(Integer value1, Integer value2) {
            addCriterion("address_id between", value1, value2, "addressId");
            return (Criteria) this;
        }

        public Criteria andAddressIdNotBetween(Integer value1, Integer value2) {
            addCriterion("address_id not between", value1, value2, "addressId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdIsNull() {
            addCriterion("hospital_manager_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdIsNotNull() {
            addCriterion("hospital_manager_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdEqualTo(Integer value) {
            addCriterion("hospital_manager_id =", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotEqualTo(Integer value) {
            addCriterion("hospital_manager_id <>", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdGreaterThan(Integer value) {
            addCriterion("hospital_manager_id >", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hospital_manager_id >=", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdLessThan(Integer value) {
            addCriterion("hospital_manager_id <", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdLessThanOrEqualTo(Integer value) {
            addCriterion("hospital_manager_id <=", value, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdIn(List<Integer> values) {
            addCriterion("hospital_manager_id in", values, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotIn(List<Integer> values) {
            addCriterion("hospital_manager_id not in", values, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdBetween(Integer value1, Integer value2) {
            addCriterion("hospital_manager_id between", value1, value2, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andHospitalManagerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hospital_manager_id not between", value1, value2, "hospitalManagerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdIsNull() {
            addCriterion("dealer_id is null");
            return (Criteria) this;
        }

        public Criteria andDealerIdIsNotNull() {
            addCriterion("dealer_id is not null");
            return (Criteria) this;
        }

        public Criteria andDealerIdEqualTo(Integer value) {
            addCriterion("dealer_id =", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotEqualTo(Integer value) {
            addCriterion("dealer_id <>", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdGreaterThan(Integer value) {
            addCriterion("dealer_id >", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dealer_id >=", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdLessThan(Integer value) {
            addCriterion("dealer_id <", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdLessThanOrEqualTo(Integer value) {
            addCriterion("dealer_id <=", value, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdIn(List<Integer> values) {
            addCriterion("dealer_id in", values, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotIn(List<Integer> values) {
            addCriterion("dealer_id not in", values, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdBetween(Integer value1, Integer value2) {
            addCriterion("dealer_id between", value1, value2, "dealerId");
            return (Criteria) this;
        }

        public Criteria andDealerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dealer_id not between", value1, value2, "dealerId");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIsNull() {
            addCriterion("hospital_card is null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIsNotNull() {
            addCriterion("hospital_card is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardEqualTo(String value) {
            addCriterion("hospital_card =", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotEqualTo(String value) {
            addCriterion("hospital_card <>", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardGreaterThan(String value) {
            addCriterion("hospital_card >", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_card >=", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLessThan(String value) {
            addCriterion("hospital_card <", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLessThanOrEqualTo(String value) {
            addCriterion("hospital_card <=", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLike(String value) {
            addCriterion("hospital_card like", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotLike(String value) {
            addCriterion("hospital_card not like", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIn(List<String> values) {
            addCriterion("hospital_card in", values, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotIn(List<String> values) {
            addCriterion("hospital_card not in", values, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardBetween(String value1, String value2) {
            addCriterion("hospital_card between", value1, value2, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotBetween(String value1, String value2) {
            addCriterion("hospital_card not between", value1, value2, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIsNull() {
            addCriterion("hospital_rent is null");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIsNotNull() {
            addCriterion("hospital_rent is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalRentEqualTo(BigDecimal value) {
            addCriterion("hospital_rent =", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotEqualTo(BigDecimal value) {
            addCriterion("hospital_rent <>", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentGreaterThan(BigDecimal value) {
            addCriterion("hospital_rent >", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_rent >=", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentLessThan(BigDecimal value) {
            addCriterion("hospital_rent <", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_rent <=", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIn(List<BigDecimal> values) {
            addCriterion("hospital_rent in", values, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotIn(List<BigDecimal> values) {
            addCriterion("hospital_rent not in", values, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_rent between", value1, value2, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_rent not between", value1, value2, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingIsNull() {
            addCriterion("hospital_gainsharing is null");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingIsNotNull() {
            addCriterion("hospital_gainsharing is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingEqualTo(Double value) {
            addCriterion("hospital_gainsharing =", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingNotEqualTo(Double value) {
            addCriterion("hospital_gainsharing <>", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingGreaterThan(Double value) {
            addCriterion("hospital_gainsharing >", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingGreaterThanOrEqualTo(Double value) {
            addCriterion("hospital_gainsharing >=", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingLessThan(Double value) {
            addCriterion("hospital_gainsharing <", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingLessThanOrEqualTo(Double value) {
            addCriterion("hospital_gainsharing <=", value, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingIn(List<Double> values) {
            addCriterion("hospital_gainsharing in", values, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingNotIn(List<Double> values) {
            addCriterion("hospital_gainsharing not in", values, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingBetween(Double value1, Double value2) {
            addCriterion("hospital_gainsharing between", value1, value2, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andHospitalGainsharingNotBetween(Double value1, Double value2) {
            addCriterion("hospital_gainsharing not between", value1, value2, "hospitalGainsharing");
            return (Criteria) this;
        }

        public Criteria andSoftdelIsNull() {
            addCriterion("softdel is null");
            return (Criteria) this;
        }

        public Criteria andSoftdelIsNotNull() {
            addCriterion("softdel is not null");
            return (Criteria) this;
        }

        public Criteria andSoftdelEqualTo(Integer value) {
            addCriterion("softdel =", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotEqualTo(Integer value) {
            addCriterion("softdel <>", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelGreaterThan(Integer value) {
            addCriterion("softdel >", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelGreaterThanOrEqualTo(Integer value) {
            addCriterion("softdel >=", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelLessThan(Integer value) {
            addCriterion("softdel <", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelLessThanOrEqualTo(Integer value) {
            addCriterion("softdel <=", value, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelIn(List<Integer> values) {
            addCriterion("softdel in", values, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotIn(List<Integer> values) {
            addCriterion("softdel not in", values, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelBetween(Integer value1, Integer value2) {
            addCriterion("softdel between", value1, value2, "softdel");
            return (Criteria) this;
        }

        public Criteria andSoftdelNotBetween(Integer value1, Integer value2) {
            addCriterion("softdel not between", value1, value2, "softdel");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}